//
//  ChatExtDB.h
//  KoalaKnow
//  聊天扩展数据表
//  Created by sally on 16/1/22.
//  Copyright © 2016年 szjn. All rights reserved.
//

#import "BaseEntity.h"
#import "UserModel.h"

@interface ChatExtDB : BaseEntity

//头像和昵称会改变，所以本地要存数据库
@property (nonatomic, copy) NSString *avatar;
@property (nonatomic, copy) NSString *uid;
@property (nonatomic, copy) NSString *nickname;
@property (nonatomic, strong) NSString *username;

- (instancetype)initWithMode:(Ext *)group;
+ (BOOL)creatTable;
- (BOOL)insert;
- (BOOL)modify;
+ (BOOL)deleteAll;
+ (ChatExtDB *)queryExtByID:(NSString *)Uid;
+ (ChatExtDB *)queryExtByUserName:(NSString *)UserName;
+ (NSArray *)queryAllExt;

@end
